package sennetwork;

public class SensorMessage {
	
	public int getLaneId() {
		return laneId;
	}

	public int getSensorId() {
		return sensorId;
	}

	private int laneId;
	private int sensorId;
	
	public SensorMessage(int laneId, int sensorId) {
		this.laneId = laneId;
		this.sensorId = sensorId;
	}
	
	public byte[] toByte() {
		byte[] message = new byte[2];
		message[0] = (byte) laneId;
		message[1] = (byte) sensorId;
		return message;
	}
}